-
Notifications
You must be signed in to change notification settings - Fork 67
Smooth normal calculation Update! #941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…eldVertices into CVertexWelder
…d of std::function
| { | ||
| private: | ||
|
|
||
| static bool isIntegralElementEqual(const ICPUPolygonGeometry::SDataView& view, uint32_t index1, uint32_t index2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all these static functions need to be static inline
| bool init(const ICPUPolygonGeometry* polygon) override | ||
| { | ||
| return polygon->valid(); | ||
| } | ||
|
|
||
| bool operator()(const ICPUPolygonGeometry* polygon, uint32_t index1, uint32_t index2) const override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline
| return true; | ||
| } | ||
|
|
||
| ~DefaultWeldPredicate() override = default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline
| template <VertexWelderAccelerationStructure AccelStructureT> | ||
| static core::smart_refctd_ptr<ICPUPolygonGeometry> weldVertices(const ICPUPolygonGeometry* polygon, const AccelStructureT& as, const WeldPredicate& shouldWeldFn) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline
| return pass<RandomIt,KeyAccessor,0ull>(input,output,rangeSize,comp); | ||
| } | ||
|
|
||
| std::pair<histogram_t, histogram_t> getMostSignificantRadixBound(size_t key) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline
| VxCmpFunction vxcmp = [](const CPolygonGeometryManipulator::SSNGVertexData& v0, const CPolygonGeometryManipulator::SSNGVertexData& v1, const ICPUPolygonGeometry* buffer) | ||
| SSNGVxCmpFunction vxcmp = [](const CSmoothNormalGenerator::SSNGVertexData& v0, const CSmoothNormalGenerator::SSNGVertexData& v1, const ICPUPolygonGeometry* buffer) | ||
| { | ||
| static constexpr float cosOf45Deg = 0.70710678118f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
constexpr static inline
| }; | ||
|
|
||
| static core::smart_refctd_ptr<ICPUPolygonGeometry> createUnweldedList(const ICPUPolygonGeometry* inGeo); | ||
| static inline core::smart_refctd_ptr<ICPUPolygonGeometry> createUnweldedList(const ICPUPolygonGeometry* inGeo); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you add inline here, the function is defined in a Cpp file
Description
Testing
TODO list: